{% set pypi_name = 'XStatic-JQuery-Migrate' %}
{% set upstream_version = upstream_version('1.2.1.2') %}
{% set rpm_release = '1' %}
{% set source = url_pypi() %}

Name:           {{ py2name(py_versions='py3') }}
Version:        {{ py2rpmversion() }}
Release:        {{ py2rpmrelease() }}
Summary:        JQuery-Migrate %{version} (XStatic packaging standard)
License:        {{ license('MIT') }}
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/xstatic-jquery-migrate
Source0:        {{ source }}
BuildRequires:  openstack-macros
BuildRequires:  {{ py3('setuptools') }}
Requires:       {{ py3('XStatic') }}
BuildArch:      noarch

%description
JQuery-Migrate JavaScript library packaged for setuptools (easy_install) / pip.

%prep
%autosetup -n {{ pypi_name }}-{{ upstream_version }}
%py_req_cleanup

%build
%{py3_build}

%install
%{py3_install}

%files
%doc README.txt
%{python3_sitelib}/xstatic
%{python3_sitelib}/XStatic_JQuery_Migrate-%{version}-py?.?.egg-info
%{python3_sitelib}/XStatic_JQuery_Migrate-%{version}-py?.?-nspkg.pth

%changelog
